package textedit;

import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.Action.*;
import javax.swing.JPopupMenu;
import java.awt.Frame;
import java.awt.event.*;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.Window;
public class TxChinaLz extends JFrame
{
	private static final long serialVersionUID = 0L;
	public Dimension Dxy;
	public int Ix;
	public int Iy;
	public TxChinaLz()
	{
		Dxy = Toolkit.getDefaultToolkit().getScreenSize();
		Ix = (int)Dxy.getWidth();
		Iy = (int)Dxy.getHeight();
		this.setTitle("AllTextEdit");
		this.setBounds(Ix/4,Iy/4,Ix/2,Iy/2);

		JMenu M_one = new JMenu("File");
		
		JMenu M_two = new JMenu("Edit");

		JMenu M_three = new JMenu("View");
		
		JMenu M_four = new JMenu("Search");

		JMenu M_five = new JMenu("Options");

		JMenu M_six = new JMenu("Tools");

		JMenu M_seven = new JMenu("Is on");

		JMenu Mone_one = new JMenu("New");
		M_one.add(Mone_one);

		JMenuItem Mone_one_one = new JMenuItem(".txt");
		Mone_one.add(Mone_one_one);
		JMenuItem Mone_one_two = new JMenuItem(".c");
		Mone_one.add(Mone_one_two);
		JMenuItem Mone_one_three = new JMenuItem(".c++");
		Mone_one.add(Mone_one_three);
		JMenuItem Mone_one_four = new JMenuItem(".java");
		Mone_one.add(Mone_one_four);
		JMenuItem Mone_one_five = new JMenuItem(".h");
		Mone_one.add(Mone_one_five);
		JMenuItem Mone_one_six = new JMenuItem(".bash");
		Mone_one.add(Mone_one_six);
		JMenuItem Mone_one_seven = new JMenuItem(".lua");
		Mone_one.add(Mone_one_seven);
		JMenuItem Mone_one_eit = new JMenuItem(".bat");
		Mone_one.add(Mone_one_eit);
		JMenuItem Mone_one_nine = new JMenuItem(".cmd");
		Mone_one.add(Mone_one_nine);
		
		JMenu Mone_two = new JMenu("Open");
		M_one.add(Mone_two);

		JMenuItem Mone_two_one = new JMenuItem(".txt");
		Mone_two.add(Mone_two_one);
		JMenuItem Mone_two_two = new JMenuItem(".c");
		Mone_two.add(Mone_two_two);
		JMenuItem Mone_two_three = new JMenuItem(".c++");
		Mone_two.add(Mone_two_three);
		JMenuItem Mone_two_four = new JMenuItem(".java");
		Mone_two.add(Mone_two_four);
		JMenuItem Mone_two_five = new JMenuItem(".h");
		Mone_two.add(Mone_two_five);
		JMenuItem Mone_two_six = new JMenuItem(".bash");
		Mone_two.add(Mone_two_six);
		JMenuItem Mone_two_seven = new JMenuItem(".lua");
		Mone_two.add(Mone_two_seven);
		JMenuItem Mone_two_eit = new JMenuItem(".bat");
		Mone_two.add(Mone_two_eit);
		JMenuItem Mone_two_nine = new JMenuItem(".cmd");
		Mone_two.add(Mone_two_nine);
		
		JMenu Mone_three = new JMenu("Save");
		M_one.add(Mone_three);

		JMenuItem Mone_three_one = new JMenuItem(".txt");
		Mone_three.add(Mone_three_one);
		JMenuItem Mone_three_two = new JMenuItem(".c");
		Mone_three.add(Mone_three_two);
		JMenuItem Mone_three_three = new JMenuItem(".c++");
		Mone_three.add(Mone_three_three);
		JMenuItem Mone_three_four = new JMenuItem(".java");
		Mone_three.add(Mone_three_four);
		JMenuItem Mone_three_five = new JMenuItem(".h");
		Mone_three.add(Mone_three_five);
		JMenuItem Mone_three_six = new JMenuItem(".bash");
		Mone_three.add(Mone_three_six);
		JMenuItem Mone_three_seven = new JMenuItem(".lua");
		Mone_three.add(Mone_three_seven);
		JMenuItem Mone_three_eit = new JMenuItem(".bat");
		Mone_three.add(Mone_three_eit);
		JMenuItem Mone_three_nine = new JMenuItem(".cmd");
		Mone_three.add(Mone_three_nine);
		
		JMenu Mone_four = new JMenu("Save is ...");
		M_one.add(Mone_four);
		JMenu Mone_five = new JMenu("Close");
		M_one.add(Mone_five);
		JMenu Mone_six = new JMenu("Print");
		M_one.add(Mone_six);
		JMenu Mone_seven = new JMenu("Exit");
		M_one.add(Mone_seven);
		
		JMenuItem Mtwo_one = new JMenuItem("Select All");
		M_two.add(Mtwo_one);
		JMenuItem Mtwo_two = new JMenuItem("Select Group");
		M_two.add(Mtwo_two);
		JMenuItem Mtwo_three = new JMenuItem("Cut");
		M_two.add(Mtwo_three);
		JMenuItem Mtwo_four = new JMenuItem("Copy");
		M_two.add(Mtwo_four);
		JMenuItem Mtwo_five = new JMenuItem("Paste");
		M_two.add(Mtwo_five);
		JMenuItem Mtwo_six = new JMenuItem("Convert to Uppercase");
		M_two.add(Mtwo_six);
		JMenuItem Mtwo_seven = new JMenuItem("Convert to Lowercase");
		M_two.add(Mtwo_seven);
		JMenuItem Mtwo_eit = new JMenuItem("Undo");
		M_two.add(Mtwo_eit);
		JMenuItem Mtwo_nine = new JMenuItem("Redo");
		M_two.add(Mtwo_nine);

		JMenuItem Mthree_one = new JMenuItem("Expand Tabs to 4 Spaces");
		M_three.add(Mthree_one);
		JMenuItem Mthree_two = new JMenuItem("Expand Tabs to 8 Spaces");
		M_three.add(Mthree_two);
		JMenuItem Mthree_three = new JMenuItem("Wrap Lines at Characters");
		M_three.add(Mthree_three);
		JMenuItem Mthree_four = new JMenuItem("Wrap Lines at Words");
		M_three.add(Mthree_four);

		JMenuItem Mfour_one = new JMenuItem("Find First");
		M_four.add(Mfour_one);
		JMenuItem Mfour_two = new JMenuItem("Find Next");
		M_four.add(Mfour_two);
		JMenuItem Mfour_three = new JMenuItem("Find Previous");
		M_four.add(Mfour_three);
		JMenuItem Mfour_four = new JMenuItem("Find Last");
		M_four.add(Mfour_four);
		JMenuItem Mfour_five = new JMenuItem("Replace Current");
		M_four.add(Mfour_five);
		JMenuItem Mfour_six = new JMenuItem("Replace Next");
		M_four.add(Mfour_six);
		JMenuItem Mfour_seven = new JMenuItem("Replace Previous");
		M_four.add(Mfour_seven);
		JMenuItem Mfour_eit = new JMenuItem("Replace All");

		JMenuItem Mfive_one = new JMenuItem("Match Letter Case");
		M_five.add(Mfive_one);
		JMenuItem Mfive_two = new JMenuItem("Match Line Start");
		M_five.add(Mfive_two);
		JMenuItem Mfive_three = new JMenuItem("Match Line End");
		M_five.add(Mfive_three);
		JMenuItem Mfive_four = new JMenuItem("End Lines with Return");
		M_five.add(Mfive_four);
		JMenuItem Mfive_five = new JMenuItem("End Lines with Newline");
		M_five.add(Mfive_five);
		JMenuItem Mfive_six = new JMenuItem("End Lines with Return and Newline");
		M_five.add(Mfive_six);

		JMenuItem Msix_one = new JMenuItem("Compile");
		M_six.add(Msix_one);
		JMenuItem Msix_two = new JMenuItem("Check");
		M_six.add(Msix_two);
		JMenuItem Msix_three = new JMenuItem("Delete");
		M_six.add(Msix_three);
		JMenuItem Msix_four = new JMenuItem("Document");
		M_six.add(Msix_four);
		JMenuItem Msix_five = new JMenuItem("Browse");
		M_six.add(Msix_five);
		JMenuItem Msix_six = new JMenuItem("Arguments");
		M_six.add(Msix_six);
		JMenuItem Msix_seven = new JMenuItem("Extcute");
		M_six.add(Msix_seven);
		JMenuItem Msix_eit = new JMenuItem("Debug");
		M_six.add(Msix_eit);

		JMenuItem Mseven_one = new JMenuItem("is AllTextEdit");
		M_seven.add(Mseven_one);
		JMenuItem Mseven_two = new JMenuItem("is AllTextEdit");
		M_seven.add(Mseven_two);
		JMenuItem Mseven_three = new JMenuItem("is AllTextEdit");
		M_seven.add(Mseven_three);
		JMenuItem Mseven_four = new JMenuItem("is AllTextEdit");
		M_seven.add(Mseven_four);
		JMenuItem Mseven_five = new JMenuItem("is AllTextEdit");
		M_seven.add(Mseven_five);
		JMenuItem Mseven_six = new JMenuItem("is AllTextEdit");
		M_seven.add(Mseven_six);
		JMenuItem Mseven_seven = new JMenuItem("is AllTextEdit");
		M_seven.add(Mseven_seven);
		
		JMenuBar MB_one = new JMenuBar();
		this.setJMenuBar(MB_one);
		MB_one.add(M_one);
		MB_one.add(M_two);
		MB_one.add(M_three);
		MB_one.add(M_four);
		MB_one.add(M_five);
		MB_one.add(M_six);
		MB_one.add(M_seven);

		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setVisible(true);
	}
	public static void main(String args[])
	{
		new TxChinaLz();
	}
}